package com.checkoutcheckins.client.widgets;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.VerticalPanel;

public class SigninWidget extends VerticalPanel {

	Image signinImage = new Image();

	public SigninWidget() {
		super();
		init();
	}

	private void init() {
		this.add(new HTML("<center>To get started:</center>"));
		this.setStyleName("signInWidget");
		signinImage.setUrl("images/signin.png");
		signinImage.addClickHandler(new ClickHandler() {

			@Override
			public void onClick(ClickEvent event) {
				Window.Location.assign("/authlink");
			}
		});
		this.add(signinImage);
		this.setCellHorizontalAlignment(signinImage, ALIGN_CENTER);
	}
}
